Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fitting fixes jvb #389

Merged
merged 8 commits into from
Feb 15, 2022
Merged

Fitting fixes jvb #389

merged 8 commits into from
Feb 15, 2022

Conversation

joelvbernier
Copy link
Member

@joelvbernier joelvbernier commented Jan 18, 2022

Adding a new 1-d spectrum fitting module for calibration that uses lmfit; this was really precipitated by the need to get the DCS pink beam function working. Constraints are essential. That use case is passing basic testing, but need to do several things:

  • add unit tests for DCS case (already included) and plain CeO2 (maybe using gaussian and pseudo-Voigt)
  • make interface class for generic spectrum fitting with 1 or more peaks and choice of background function
  • steal/enhance parameter estimator from fitpeak

@saransh13 and @darrencpagan -- I am open to any ideas you have regarding enhancing the initial parameter estimation. What we currently have is ok, but might not be robust if the initial guess is a bit further off. I am aware that there very well may not be a better generic rubric, but I figured I would plant the seed.

@joelvbernier joelvbernier added enhancement New feature or request high priority move these to the top of the stack cleanup labels Jan 18, 2022
@joelvbernier joelvbernier self-assigned this Jan 18, 2022
@joelvbernier joelvbernier marked this pull request as draft January 18, 2022 19:54
@pep8speaks
Copy link

pep8speaks commented Jan 19, 2022

Hello @joelvbernier! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2022-02-15 04:00:42 UTC

@joelvbernier joelvbernier marked this pull request as ready for review February 14, 2022 18:43
@joelvbernier joelvbernier requested a review from psavery February 14, 2022 18:43
Copy link
Collaborator

@psavery psavery left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM after we add tqdm as a dependency...

@joelvbernier
Copy link
Member Author

Still needs unit tests, but I've tested it with an array of data including DCS. Also tested the updated "auto" powder calibration on a Pilatus.

@joelvbernier joelvbernier merged commit 047d1d9 into master Feb 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup enhancement New feature or request high priority move these to the top of the stack
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants